<?php echo anchor(base_url(),"Home");?>
<?php echo validation_errors();?>
<?php echo form_open("user/User/update");?>
<input type="hidden" name="id" id="id" value="<?php echo set_value('id', $id);?>"/>
<input type="hidden" name="action" id="action" value="save"/>
<table>
    <tr>
        <td><label for="username">Username</label></td>
        <td><input type="text" name="username" id="username" value="<?php echo set_value('username', $username);?>"/></td>
    </tr>
    
    <tr>
        <td><label for="password">Password</label></td>
        <td><input type="password" id="password" name="password" value="<?php echo set_value('password', $password)?>"/></td>
    </tr>
    <tr>
        <td><label for="first_name">First name</label></td>
        <td><input type="text" id="first_name" name="first_name" value="<?php echo set_value('first_name', $first_name);?>"/></td>
    </tr>
    <tr>
        <td><label for="last_name">Last name</label></td>
        <td><input type="text" id="last_name" name="last_name" value="<?php echo set_value('last_name', $last_name);?>"/></td>
    </tr>
    <tr>
        <td><label for="email">Email</label></td>
        <td><input type="text" id="email" name="email" value="<?php echo set_value('email', $email);?>"/></td>
    </tr>
    
    <tr>
    	<td><input type="submit" value="Update"/></td><td></td>
    </tr>
</table>
    <?php echo form_close();?>
